package com.xiang.atomikos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiang.atomikos.entity.UserEntity;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserDao2 extends BaseMapper<UserEntity> {

  /**
   * 查询出所有用户的信息，用于IM服务器接口提供
   * @return
   */
  @Select("SELECT * FROM t_sys_user WHERE u.DELETED=0 AND u.state=0")
  List<Map<String,Object>> findAllUser();

}
